<?php
/**
 * 
 * @author Paolo Bertuzzo
 *
 */
namespace Catalog\Data;

class ProductPriceDao extends AbstractDao
{
    
    /**
     * 
     * @param int $storeId
     * @param int $productId
     */
    public function get($storeId, $productId)
    {
        $query = $this->entityManager->createQuery('select pp from Catalog\Entity\ProductPrice pp where pp.storeId = ?1 and pp.productId = ?2');
        
        $query->setParameter(1, $storeId);
        $query->setParameter(2, $productId);
        $query->useResultCache(true);
        
        return $query->getResult();
    }
}

?>